window.onload=function(){
    let bun=document.querySelector("button")
    let bun_post=document.querySelector("#bun_post")
    bun.addEventListener("click",()=>{
        let username = document.getElementById("username").value
        let password = document.getElementById("password").value
        axios.get("http://172.19.1.251:8080/login",{
            params:{
                username:username,
                password:password
            }
        }).then((res)=>{
            console.log(res.data)
        })
    })
    bun_post.addEventListener("click",()=>{
        let username = document.getElementById("username").value
        let password = document.getElementById("password").value
        axios.post("http://172.19.1.251:8080/login",{
            username:username,
            password:password
        }).then((res)=>{
            console.log(res.data)
        })
    })
}